<?php
 class Controllers_News extends Libs_Controller{
     public function __construct(){
         parent::__construct();
         $this->model=new Models_News();
         $this->menu=new Models_Menu();
         $this->getmenu();

     }
     public function getmenu()
     {

         $this->view->listmenusys=$this->menu->getmenusystem();
         $this->view->listmenuproduct=$this->menu->getmenuproduct();
         $this->view->listmanufacture=$this->menu->getmanufactory();
         $this->view->listnews=$this->menu->getnews();
     }
     public function index()
     {
           $this->model->getallnews();
     }
     public function detail($param=null)
     {
          $id=$param[0];
          $this->view->detail=$this->model->getdetailnews($id);
          $this->view->listnewsthem=$this->model->getnewsthem($id);
          $this->view->render('news/detail');
     }
 }